<template>
  <div class="parent">
    <Headers :title="title" />
    <div class="content">
      <ul class="list">
        <li class="listItem" @click="goDetail">
          <div class="top">
            <div class="left">
              <div class="pic">
                <img src="../../assets/img/logoS.png" alt="" class="img">
              </div>
            </div>
            <div class="middle">
              <span class="name">山东奥神SLNA-009U</span>
              <span class="name number">序列号 1525485254862</span>
            </div>
            <div class="rightWarning">
              <div class="titleName">
                <span class="text">预警</span>
              </div>
            </div>
          </div>
          <div class="btm">
            <div class="btnOne" @click="clickEvent">
              <span class="text textSp">删除设备</span>
            </div>
            <div class="btnOne btnOneSp" @click="clickEvent">
              <span class="text">控制设备</span>
            </div>
          </div>
        </li>
        <li class="listItem" @click="goDetail">
          <div class="top">
            <div class="left">
              <div class="pic">
                <img src="../../assets/img/logoA.png" alt="" class="img">
              </div>
            </div>
            <div class="middle">
              <span class="name">辛普森 FR-680S/WL 低环境温度空气源热泵(冷水)机组</span>
              <span class="name number">序列号 D8131815</span>
            </div>
            <div class="rightFault">
              <div class="titleName">
                <span class="text">故障</span>
              </div>
            </div>
          </div>
          <div class="btm">
            <div class="btnOne" @click="clickEvent">
              <span class="text textSp">删除设备</span>
            </div>
            <div class="btnOne btnOneSp" @click="clickEvent">
              <span class="text">控制设备</span>
            </div>
          </div>
        </li>
        <li class="listItem" @click="goDetail">
          <div class="top">
            <div class="left">
              <div class="pic">
                <img src="../../assets/img/logoS.png" alt="" class="img">
              </div>
            </div>
            <div class="middle">
              <span class="name">阿尔普尔 AF-160W/EHPC 超低温空气源热能机组</span>
              <span class="name number">序列号 SF2776279982</span>
            </div>
            <div class="right">
              <div class="titleName">
                <span class="text">正常</span>
              </div>
            </div>
          </div>
          <div class="btm">
            <div class="btnOne" @click="clickEvent">
              <span class="text textSp">删除设备</span>
            </div>
            <div class="btnOne btnOneSp" @click="clickEvent">
              <span class="text">控制设备</span>
            </div>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>
<script>
import Headers from '@/components/header-return'
import { Toast } from 'mint-ui'
export default {
  name: 'MyEquipment',
  data () {
    return {
      title: '我的设备'
    }
  },
  components: {
    Headers
  },
  methods: {
    clickEvent () {
      Toast({
        message: '当前版本不可执行此操作，请联系4006-506-803开通正式版本',
        position: 'middle',
        duration: 2000
      })
    },
    goDetail () {
      Toast({
        message: '当前版本不可执行此操作，请联系4006-506-803开通正式版本',
        position: 'middle',
        duration: 2000
      })
    }
  }
}
</script>
<style scoped lang="scss">
.parent{
  width: 100%;
  height: 100%;
  background: #f9f9f9;
}
.list{
  width: 100%;
  .listItem{
    width: 100%;
    height: 120px;
    border: 1px solid #f4f4f4;
    background: #fff;
    border-left: none;
    border-right: none;
    margin-bottom: 6px;
    .top{
      width: 100%;
      height: 75px;
      padding: 0 5px;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: flex-start;
      border-bottom: 1px solid #f4f4f4;
      .left{
        width: 30px;
        height: 45px;
        padding-top: 12px;
        .pic{
          width: 25px;
          height: 25px;
          border-radius: 100%;
          display: flex;
          flex-direction: row;
          justify-content: flex-start;
          align-items: flex-start;
          .img{
            width: 100%;
            height: 100%;
            border-radius: 100%;
          }
        }
      }
      .middle{
        width: 80%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        .name{
          font-size: 16px;
          font-family:PingFangSC-Regular;
          font-weight:400;
          color:rgba(51,51,51,1);
        }
        .number{
          // padding-top: 5px;
        }
      }
      .right{
        width: 0;
        height: 0;
        margin-right: -5px;
        border-top: 23px solid #2FD0AE;
        border-right: 23px solid #2FD0AE;
        border-left: 23px solid transparent;
        border-bottom: 23px solid transparent;
        position: relative;
        .titleName{
          width: 30px;
          height: 20px;
          position: absolute;
          transform:rotate(45deg);
          top: -16px;
          right: -24px;
          display: flex;
          flex-direction: row;
          justify-content: center;
          align-items: center;
          .text{
            font-size:12px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(255,255,255,1);
          }
        }
      }
      .rightFault{
        width: 0;
        height: 0;
        margin-right: -5px;
        border-top: 23px solid #F15D5A;
        border-right: 23px solid #F15D5A;
        border-left: 23px solid transparent;
        border-bottom: 23px solid transparent;
        position: relative;
        .titleName{
          width: 30px;
          height: 20px;
          position: absolute;
          transform:rotate(45deg);
          top: -16px;
          right: -24px;
          display: flex;
          flex-direction: row;
          justify-content: center;
          align-items: center;
          .text{
            font-size:12px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(255,255,255,1);
          }
        }
      }
      .rightWarning{
        width: 0;
        height: 0;
        margin-right: -5px;
        margin-top: -1px;
        border-top: 23px solid #FFA926;
        border-right: 23px solid #FFA926;
        border-left: 23px solid transparent;
        border-bottom: 23px solid transparent;
        position: relative;
        .titleName{
          width: 30px;
          height: 20px;
          position: absolute;
          transform:rotate(45deg);
          top: -16px;
          right: -24px;
          display: flex;
          flex-direction: row;
          justify-content: center;
          align-items: center;
          .text{
            font-size:12px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(255,255,255,1);
          }
        }
      }
    }
    .btm{
      width: 100%;
      height: 45px;
      display: flex;
      flex-direction: row;
      justify-content: flex-end;
      align-items: center;
      .btnOne{
        width: 80px;
        height: 28px;
        border: 1px solid #3B8BFB;
        border-radius: 2px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-right: 10px;
        .text{
          font-size:14px;
          font-family:PingFangSC-Regular;
          font-weight:400;
          color:rgba(255,255,255,1);
        }
        .textSp{
          font-size:14px;
          font-family:PingFangSC-Regular;
          font-weight:400;
          color:rgba(59,139,251,1);
        }
      }
      .btnOneSp{
        background: #3B8BFB;
        border: none;
      }
    }
  }
}
</style>
